package MissionTransport;

public class Yingzhang extends Approver{

    private String name;

    public Yingzhang(String name) {
        this.name = name;
    }
    @Override
    public void processRequest(MissionRequest request) {
        if(request.getEnemyNum()<=200){
            System.out.println("敌人人数小于200人，营长有权下达作战命令");
            System.out.println("营长["+name+"]下达作战命令完成，打败了["+request.getEnemyNum()+"]个敌人");
        }else{
            System.out.println("敌人人数大于等于200人，营长无权下达作战命令，需要开会讨论");
            successor.processRequest(request);
        }
    }

}
